//
//  Video.m
//  HuateVideo
//
//  Created by Tiger on 12-5-17.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "Video.h"

@implementation Video

@synthesize title,url,count;

- (id)initWithCoder:(NSCoder *)decoder {
    self = [super init];
    if(self) {
        self.title = [decoder decodeObjectForKey:@"title"];
        self.url = [decoder decodeObjectForKey:@"url"];
        self.count = [decoder decodeIntForKey:@"count"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)encoder {
    [encoder encodeObject:self.title forKey:@"title"];
    [encoder encodeObject:self.url forKey:@"url"];
    [encoder encodeInt:self.count forKey:@"count"];
}

-(void)dealloc{
    self.title = nil;
    self.url = nil;
    [super dealloc];
}

@end
